﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master"
    AutoEventWireup="true" CodeBehind="RegList.aspx.cs" Inherits="Jzy.Web.Project.BugManage.RegList" %>

<%@ Register Src="../../Common/Controls/Pager.ascx" TagName="Pager" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        div.style1
        {
            text-align:right;color:#666666; width:60px;
        }
        
        div.style3
        {
        	padding:2px 0px 2px 0px; line-height:20px;color:#666666;
        }
       
        .style2
        {
            width: 50px; text-align:center;
        }
        
        .style4
        {
        	text-align:center;
        }
      
        .bold
        {
        	font-weight:bold;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="toolbar">
        <ul>
            <li><a id="lnkAdd" runat="server" href="Edit.aspx"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="登记"></asp:Literal></span></a></li>
            
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
            <li>
                <asp:Button ID="btnRefresh" runat="server" OnClick="btnRefresh_Click" Text="Button"
                    CssClass="hide" /><asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" CssClass="hide" /></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">
            <asp:Label ID="Label1" runat="server" Text="查看：" Font-Bold="true"></asp:Label>
            <asp:Repeater ID="rptStatus" runat="server" OnItemCommand="rptStatus_ItemCommand">
                <ItemTemplate>
                    <asp:LinkButton ID="LinkButton1" runat="server" Style="color: #999999" CommandArgument='<%#Eval("ID") %>'><%#Eval("Name") %></asp:LinkButton>
                </ItemTemplate>
                <SeparatorTemplate>
                    -
                </SeparatorTemplate>
            </asp:Repeater>
        </div>       
    </div>
    <asp:Panel ID="pnlStatus" runat="server" Width="100%" CssClass="message" Visible="false">
        <asp:Label ID="Label6" runat="server" Text="当前查看的状态是："></asp:Label>
        <asp:Label ID="lblStatus" runat="server" Text="Label"></asp:Label></asp:Panel>
    <div id="list">
    <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                 <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th class="style2" style="text-align:center;">
                    优先级
                </th>   
                <th>项目名称</th>             
                <th>
                    缺陷位置
                </th>
                <th style="text-align:center;">缺陷描述</th>
                <th style="text-align:center;">
                    接收者
                </th>
                <th>缺陷类型</th>
                <th  style="text-align:center;">当前状态</th>                
                <th>
                    期望完成日期
                </th>   
                <th>
                     登记日期
                </th>                               
                <th  style="text-align:center;">
                    操作
                </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                OnItemDataBound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>
                        <td class="style2" nowrap="nowrap">
                            <div class="style2"><%#(Jzy.Model.Project.BugPriority)(int)Eval("Severity")%>&nbsp;</div>
                        </td>    
                        <td nowrap="nowrap"><%#Eval("PrjName") %></td>                   
                        <td nowrap="nowrap">
                            <asp:HyperLink ID="lnkName" runat="server"><%#Eval("Name") %></asp:HyperLink>&nbsp;
                        </td>
                        <td class="style4">
                            <asp:HyperLink ID="lnkDetail" runat="server" ToolTip='<%#Eval("Remark") %>'>查看</asp:HyperLink></td>
                        <td class="style4" nowrap="nowrap">
                            <%#Eval("ReceiveName")%>&nbsp;
                        </td>
                        <td><%#Eval("TypeName") %>&nbsp;</td>
                        <td class="style4">
                            <asp:Label ID="lblStatus" runat="server" Text='<%#((Jzy.Model.Project.BugStatus)Eval("Status")).ToString() %>'></asp:Label></td>
                        
                        <td>
                             <%#((DateTime)Eval("PlanEndTime") == DateTime.MinValue) ? "" : Eval("PlanEndTime", "{0:yyyy-MM-dd}")%>&nbsp;
                        </td>
                        <td nowrap="nowrap">
                            <%#Eval("InputTime", "{0:yyyy-MM-dd}")%>&nbsp;
                        </td>
                        <td nowrap="nowrap"  class="style4">
                            <asp:HyperLink ID="lnkEdit" runat="server">修改</asp:HyperLink>
                        </td>
                    </tr>                    
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="11" class="empty">
                            没有提过问题
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <uc2:Pager ID="Pager1" runat="server" />
</asp:Content>
